﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.ComponentModel.DataAnnotations;

namespace AppSocketModel
{
    /// <summary>
    /// 账户模型
    /// </summary>
    [BsonIgnoreExtraElements]
    public class AccountRequestDto
    {

        /// <summary>
        /// 父账户Id
        /// </summary>
        [Required(ErrorMessage = "父账户Id")]
        public string ParentAccountId { set; get; }

        /// <summary>
        /// 账户号
        /// </summary>
        [Required(ErrorMessage = "账号号")]
        public string AccountCode { set; get; }
         
        /// <summary>
        /// 账号名称
        /// </summary>
        [Required(ErrorMessage = "账号名称")]
        public string AccountName { set; get; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码")]
        public string Password { set; get; }

    } 
}
